package org.wzl.todolisthelper.controller;

import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.wzl.todolisthelper.service.TaskService;
import org.wzl.todolisthelper.utils.Resp;

@Slf4j
@RestController
@RequestMapping("/task")
public class TaskController {

    @Resource
    private TaskService taskService;

    @GetMapping("/getAllCard")
    public Resp<?> getAllCard() {
        return Resp.ok(taskService.getAllCard());
    }


}
